#include <fcntl.h>
#include "ourhdr.h"

void set_fl(int fd, int flags){
	int val;

	if( (val = fcntl(fd, F_GETFL,0)) <0)
		err_sys("fcntl F_GETFL error");
	val |= flags;
	if( fcntl(fd, F_GETFL,val) <0)
		err_sys("fcntl F_GETFL error");

}

int main(){
	printf("test set_fl\n");
	printf("to do...\n");
	return 0;
}
